
from info import create_app,db
#导入管理器对象
from flask_script import Manager
#导入模型类
from info import models

#导入迁移文件
from flask_migrate import Migrate,MigrateCommand

app = create_app('development')

# 管理器对象关联app
mangage = Manager(app)

#实例化迁移文件
Migrate(app,db)
mangage.add_command('db',MigrateCommand)


if __name__ == '__main__':
    # app.run()
    mangage.run()